﻿namespace MicroBlog
{
    /// <summary>
    /// 程序设置
    /// </summary>
    public class AppSettings
    {
        /// <summary>
        /// 站点的标题
        /// </summary>
        public string SiteTitle { get; set; }
        /// <summary>
        /// 是否启用缓存
        /// </summary>
        public bool CacheDbResults { get; set; } = true;
        /// <summary>
        /// 是否使用Markdown编辑器
        /// </summary>
        public bool UseMarkdown { get; set; } = true;
        /// <summary>
        /// 允许上传的文件类型，扩展名
        /// </summary>
        public string AttachExtension { get; set; }
        /// <summary>
        /// 允许上传的文件大小，KB
        /// </summary>
        public int AttachImagesize { get; set; } = 2048;
    }
}